fix(ci): resolve daemon test interference on macOS/Windows and disable release-please#28
Merged
Merged
Conversation
…n CI Two issues caused post-merge CI failures on macOS and Windows: 1. daemon_mode_two_engines_share_same_hyperd asserted exact endpoint equality, but the daemon's liveness monitor can restart hyperd between Engine::new calls. The panic poisoned ENV_LOCK, cascading to all subsequent tests. Fixed by relaxing the assertion and recovering from mutex poison via unwrap_or_else(into_inner). 2. Non-daemon test files used Engine::new / HyperMcpServer::new which attempt daemon discovery. When daemon_tests leave a daemon alive in the same cargo-test process, other tests connect through it — causing "database still in use" errors on Windows. Switched all non-daemon tests to new_no_daemon / with_no_daemon for isolation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes CI failures on macOS and Windows introduced by the single-instance daemon PR (#26), and temporarily disables release-please until the current feature work is complete.
Mac (daemon_tests):
daemon_mode_two_engines_share_same_hyperdasserted exact endpoint equality between two engines, but the daemon's liveness monitor can restarthyperdbetweenEngine::newcalls (giving a new port). Changed the assertion to verify both engines are in daemon mode and the daemon is reachable. Additionally, the panic poisoned the sharedENV_LOCKmutex, cascading failures to all 10 subsequent tests. Addedacquire_env_lock()that recovers from poison viaunwrap_or_else(PoisonError::into_inner).Windows (saved_queries_tests):
server_workspace_store_exposes_saved_queries_via_resourcesusedEngine::new/HyperMcpServer::newwhich attempt daemon discovery. Whendaemon_testsrun in parallel and leave a daemon alive, other test files inadvertently connect through it — causing "database still in use" errors on Windows (Hyper's file-locking semantics differ cross-platform). Switched all non-daemon test files toEngine::new_no_daemon/HyperMcpServer::with_no_daemonso they spawn isolatedhyperdprocesses and cannot interfere with the daemon test suite.Release-please disabled: Added
if: falseguard to the release-please workflow job. Re-enable by removing thefalse &&prefix when ready to cut the next release.Test plan
cargo test -p hyperdb-mcp --test daemon_tests— 35/35 passcargo test -p hyperdb-mcp --test saved_queries_tests— 13/13 passcargo test -p hyperdb-mcp --test resource_tests— 11/11 passcargo test -p hyperdb-mcp --test table_catalog_tests— 16/16 passcargo test -p hyperdb-mcp— full suite greencargo clippy --workspace --tests -- -D warnings— cleancargo fmt --check— clean